package com.ttflutter.tkvideodownloader.api

import androidx.room.ColumnInfo
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable

/**
 * @author Afra55
 * @date 2020/5/23
 * A smile is the best business card.
 */
@Entity(tableName = "saved_media")
class SavedMediaEntity:Serializable {
    @PrimaryKey
    @ColumnInfo(name = "sid", defaultValue = "text")
    var id :String = "text"
    @ColumnInfo(name = "what")
    var what:Int? = 0 // 0 video, 1 music
    @Embedded
    var address: MediaEntity? = null
}